import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);
// vuex store使用总结 4 (mapState ;mapGetters; mapActions; mapMutations 的 模块化 使用)
// https://blog.csdn.net/nicepainkiller/article/details/97145586?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-97145586-blog-124856480.235^v38^pc_relevant_sort_base1&spm=1001.2101.3001.4242.2&utm_relevant_index=4
//购物车
import cart from './modules/cart.js'
//地址管理
import path from './modules/path.js'
//用户
import user from './modules/user.js'
//订单管理
import order from './modules/order.js'
import getters from './modules/getters.js'
export default new Vuex.Store({
	modules: {
		cart,
		path,
		getters,
		user,
		order
	}
})